<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Username')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-username" data-rule="required" class="form-control" name="row[username]" type="text" value="{$row.username}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('公司名称')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-company"  class="form-control" name="row[company]" type="text" value="{$row.company}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('贷罗盘平台名字')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-pinname" data-rule="" placeholder="要依据贷罗盘保存的平台名称全拼，不然抓不到数据" class="form-control" name="row[pinname]" type="text" value="{$row.pinname}">
        </div>
        <span style="color: red">* 要依据贷罗盘保存的平台名称全拼，不然抓不到数据</span>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('联系人姓名')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-contacts" data-rule="" class="form-control contact" name="row[contacts]" type="text" value="{$row.contacts}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Wechat')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-wechat" data-rule="" class="form-control contact" name="row[wechat]" type="text" value="{$row.wechat}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Qq')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-qq" data-rule="" class="form-control contact" name="row[qq]" type="text" value="{$row.qq}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Mobile')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-mobile" data-rule="" class="form-control contact" name="row[mobile]" type="text" value="{$row.mobile}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Email')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-email" data-rule="" class="form-control" name="row[email]" type="text" value="{$row.email}">
        </div>
    </div>
    <!--<div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="statusList" item="vo"}
            <label for="row[status]-{$key}"><input id="row[status]-{$key}" data-rule="checked" name="row[status]" type="radio" value="{$key}" {in name="key" value="$row.status"}checked{/in} /> {$vo}</label>
            {/foreach}
            </div>

        </div>
    </div>-->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Gender')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-gender" data-rule="" class="form-control selectpicker" name="row[gender]">
                {foreach name="genderList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.gender"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Station')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-station" class="form-control" name="row[station]" type="text" value="{$row.station}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('个人爱好')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-hobby" data-rule=""   class="form-control" name="row[hobby]" type="text" value="{$row.hobby}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Birthday')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-birthday" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[birthday]" type="text" {if condition="$row['birthday'] eq '0000-00-00'"}value="{:date('Y-m-d',time())}"{else/}value="{$row.birthday}"{/if}>
        </div>
    </div>

    {if condition='($type eq 2) AND ($allotData["status"] eq 6)'}
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">{:__('Helist')}:</label>
            <div class="col-xs-12 col-sm-8">
                <select  id="c-sectionlist" data-rule="required" class="form-control selectpicker" name="row[typelist]">
                    {foreach name="heList" item="vo" key='key'}
                         <option value="{$key}" {if condition="$key eq $allotData['typelist']"}selected{/if}>{$vo}</option>
                    {/foreach}
                </select>
            </div>
        </div>
    {/if}
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
